﻿@model kozvetito.Models.RegisterViewModel

<input type="button" id="button" value="Regisztráció" class="btn btn-default" />

<div id="dialog" title="Regisztráció">
    @using (Html.BeginForm("Register", "User", FormMethod.Post, new { id = "regForm", area = "" }))
    {
        @Html.AntiForgeryToken()

        <div class="form-horizontal">
            @Html.ValidationSummary(true)
            
            @*<input type="hidden" autofocus/>*@

            <div class="form-group">
                <div class="col-md-10">
                    @Html.TextBoxFor(model => model.UserName, new { @class = "form-control", @placeholder = HttpUtility.HtmlDecode(Html.DisplayNameFor(m => m.UserName).ToHtmlString()) })
                    @Html.ValidationMessageFor(model => model.UserName)
                </div>
            </div>

            <div class="form-group">
                <div class="col-md-10">
                    @Html.PasswordFor(model => model.Password, new { @class = "form-control", @placeholder = HttpUtility.HtmlDecode(Html.DisplayNameFor(m => m.Password).ToHtmlString()) })
                    @Html.ValidationMessageFor(model => model.Password)
                </div>
            </div>

            <div class="form-group">
                <div class="col-md-10">
                    @Html.PasswordFor(model => model.ConfirmPassword, new { @class = "form-control", @placeholder = HttpUtility.HtmlDecode(Html.DisplayNameFor(m => m.ConfirmPassword).ToHtmlString()) })
                    @Html.ValidationMessageFor(model => model.ConfirmPassword)
                </div>
            </div>

            <div class="form-group">
                <div class="col-md-10">
                    @Html.LabelFor(model => model.Ferfi)
                    @Html.RadioButtonFor(model => model.Ferfi, true) Férfi
                    @Html.RadioButtonFor(model => model.Ferfi, false) Nő
                    @Html.ValidationMessageFor(model => model.Ferfi)
                </div>
            </div>

            <div class="form-group">
                <div class="col-md-10">
                    @Html.TextBoxFor(model => model.Nev, new { @class = "form-control", @placeholder = HttpUtility.HtmlDecode(Html.DisplayNameFor(m => m.Nev).ToHtmlString()) })
                    @Html.ValidationMessageFor(model => model.Nev)
                </div>
            </div>

            <div class="form-group">
                <div class="col-md-12">
                    @Html.TextBoxFor(model => model.EMail, new { @class = "form-control", @placeholder = HttpUtility.HtmlDecode(Html.DisplayNameFor(m => m.EMail).ToHtmlString()), @type = "email" })
                    @Html.ValidationMessageFor(model => model.EMail)
                </div>
            </div>

            <div class="form-group">
                <div class="col-md-10">
                    @Html.CheckBoxFor(model => model.Felhaszn_feltetel, new { @id = "feltetel" })
                    @Html.LabelFor(model => model.Felhaszn_feltetel)
                    @Html.ValidationMessageFor(model => model.Felhaszn_feltetel)
                </div>
            </div>
            <input type="submit"/>
        </div>
    }
</div>

@Scripts.Render("~/bundles/jqueryval")
@Scripts.Render("~/bundles/jqueryui")
@Styles.Render("~/Content/jqueryui")
@Scripts.Render("~/bundles/msgbox")
@Styles.Render("~/bundles/msgboxcss")